<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">NED File <i>src/common/cbr/CoordBasedRouting.ned</i></h2>
<table class="typetable">
   <tr>
      <th>Name</th>
      <th>Description</th>
   </tr>
<tr>
   <td>
      <a href="oversim.common.cbr.CoordBasedRouting.html">CoordBasedRouting</a>
      <i> (simple&nbsp;module)</i>
   </td>
   <td>

<p>Global Module for providing allround CBR information</p>
   </td>
</tr>
<tr>
   <td>
      <a href="oversim.common.cbr.CoordBasedRoutingModules.html">CoordBasedRoutingModules</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>
<i>(no description)</i>
   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">//
// Copyright (C) 2008 Institut fuer Telematik, Universitaet Karlsruhe (TH)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
</span><span style="color: #000000; ">
</span><span style="color: #808080; font-style: italic; ">//
// </span><span style="color: #000080; ">@author</span><span style="color: #808080; font-style: italic; "> Fabian Hartmann
//
</span><span style="color: #000000; ">
</span><span style="color: #800000; font-weight: bold; ">package</span><span style="color: #000000; "> </span><span style="color: #000000; ">oversim</span><span style="color: #000000; ">.</span><span style="color: #000000; ">common</span><span style="color: #000000; ">.</span><span style="color: #000000; ">cbr</span><span style="color: #000000; ">;
</span><span style="color: #808080; font-style: italic; ">//package oversim.common;
</span><span style="color: #800000; font-weight: bold; ">import</span><span style="color: #000000; "> </span><span style="color: #000000; ">oversim</span><span style="color: #000000; ">.</span><span style="color: #000000; ">common</span><span style="color: #000000; ">.</span><span style="color: #000000; ">IGlobalFunctions</span><span style="color: #000000; ">;

</span><span style="color: #808080; font-style: italic; ">//
// Global Module for providing allround CBR information
//
</span><span style="color: #800000; font-weight: bold; ">simple</span><span style="color: #000000; "> </span><span style="color: #000000; ">CoordBasedRouting</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000000; font-weight: bold; ">@class</span><span style="color: #000000; ">(</span><span style="color: #000000; ">CoordBasedRouting</span><span style="color: #000000; ">);
        </span><span style="color: #808080; font-style: italic; ">//@display(&quot;i=block/users&quot;);
</span><span style="color: #000000; ">        </span><span style="color: #808080; font-style: italic; ">//bool enabled;
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">string</span><span style="color: #000000; "> </span><span style="color: #000000; ">areaCoordinateSource</span><span style="color: #000000; ">;        </span><span style="color: #808080; font-style: italic; ">// XML filename
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">CBRstartAtDigit</span><span style="color: #000000; ">;                </span><span style="color: #808080; font-style: italic; ">// start at this digit using CBR
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">CBRstopAtDigit</span><span style="color: #000000; ">;                 </span><span style="color: #808080; font-style: italic; ">// stop at this digit using CBR
</span><span style="color: #000000; ">        </span><span style="color: #808080; font-style: italic; ">//int coordCalcRuns;                  // How many runs will be started with random coordinates when calculating a node's coordinates?
</span><span style="color: #000000; ">        </span><span style="color: #808080; font-style: italic; ">//double waitForLandmarks @unit(s);   // If not enough landmarks are available yet: Wait how long until next try?
</span><span style="color: #000000; ">        </span><span style="color: #808080; font-style: italic; ">//bool onlyCoordFault;                // only coord measuring RTTs should be manipulated
</span><span style="color: #000000; ">        </span><span style="color: #808080; font-style: italic; ">//int coordCheckPercentage;           // Sets the  Range (in Percent) for which malicious computed Coordinates are allowed
</span><span style="color: #000000; ">}

</span><span style="color: #800000; font-weight: bold; ">module</span><span style="color: #000000; "> </span><span style="color: #000000; ">CoordBasedRoutingModules</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">like</span><span style="color: #000000; "> </span><span style="color: #000000; ">IGlobalFunctions</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">submodules</span><span style="color: #000000; ">:
        </span><span style="color: #000000; ">coordBasedRouting</span><span style="color: #000000; ">: </span><span style="color: #000000; ">CoordBasedRouting</span><span style="color: #000000; "> {
            </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
                </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;i=block/users&quot;</span><span style="color: #000000; ">);
        }
}</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
